package com.fable.sp.core.widget;

import java.io.IOException;

/**
 * .
 *
 * @author stormning on 16/8/8.
 */
public interface Widget {

    String RENDER_MODE_EDIT = "edit";
    String RENDER_MODE_VIEW = "view";
    String RENDER_MODE_PREFERENCE = "preference";

    void processAction(ActionRequest request, ActionResponse response) throws WidgetException, IOException;

    void render(RenderRequest request, RenderResponse response) throws WidgetException, IOException;
}
